home *** CD-ROM | disk | FTP | other *** search
/ Kentucky Virtual Art Museum / Kentucky Virtual Art Museum.iso / site / museums / webb / viewer.swf / scripts / frame_3 / DoAction.as
Text File  |  2005-02-24  |  632b  |  28 lines

  1. function doLayout()
  2. {
  3.    mcLoader._x = Math.ceil(Stage.width / 2);
  4.    mcLoader._y = Math.ceil(Stage.height / 2);
  5. }
  6. _global.gmcMain = this;
  7. Stage.align = "TL";
  8. Stage.scaleMode = "noScale";
  9. lstnRez = new Object();
  10. Stage.addListener(lstnRez);
  11. RESIZE_INTERVAL = 300;
  12. lstnRez.onResize = function()
  13. {
  14.    var _loc1_ = this;
  15.    if(!_loc1_.resizeIntervalId)
  16.    {
  17.       _loc1_.resizeIntervalId = setInterval(_loc1_,"$onResize",RESIZE_INTERVAL);
  18.    }
  19.    _loc1_.$onResize = function()
  20.    {
  21.       doLayout();
  22.       clearInterval(this.resizeIntervalId);
  23.       delete this.resizeIntervalId;
  24.    };
  25. };
  26. doLayout();
  27. stop();
  28.